package bookpos.service;

import java.util.List;

import bookpos.entity.Customer;

/**
 * 客户业务类接口
 * @author WZB
 *
 */
public interface CustomerService {
	/**
	 * 添加客户
	 * @param customer
	 */
	public void saveCustomer(Customer customer);
	/**
	 * 更新客户
	 * @param customer
	 */
	public void updateCustomer(Customer customer);
	
	/**
	 * 删除客户
	 * @param id
	 */
	public void deleteCustomer(int id);
	
	/**
	 * 列出客户
	 * @return
	 */
	public List<Customer> findAllCustomer(int page, int rows, String sort, String order);
	/**
	 * 统计总数
	 * @return
	 */
	public int getTotal();
	/**
	 * 根据客户编号查客户
	 * @param hql
	 * @return
	 */
	public boolean isExist(String customerNo);
}
